import java.util.*;
public class Clinic  implements Employee{
	private List<Patient> patients;
	private List<Doctor> doctors;
	

	public Clinic(){
		patients = new ArrayList<Patient>(); 
		doctors = new ArrayList<Doctor>();
		
		System.out.println("Clinic");
	}

	List<Patient> getPatients(){
		return this.patients;
	}
	List<Doctor> getDoctors(){
		return this.doctors;
	}
	void addPatient(Patient patient){
		
		patients.add(patient);
		
	}
	void removePatient(int index){
		
		patients.remove(index);
		
	}

	public void hire(Person person){
		Doctor doctor = new Doctor(person);
		doctors.add(doctor);
		
	}
	public void fire(Person person){
		doctors.remove((Doctor)person);
		
		
	}
	

}